package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 包裹耗材
 * </p>
 * @author long
 * @since 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_outbound_package_material")
public class OrderOutboundPackageMaterialDo extends Model<OrderOutboundPackageMaterialDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 包裹id
     */
    @TableField("package_id")
    private Long packageId;

    /**
     * 包材编码
     */
    @TableField("material_code")
    private String materialCode;

    /**
     * 包材数
     */
    @TableField("material_num")
    private Integer materialNum;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
